Class ldbf.ldbfJava
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ldbf.ldbfJava

java.lang.Object
   |
   +----ldbf.ldbfJava

public class ldbfJava
extends Object
ldbfJava Class - implements a connection to a remote server and a JAVA variant of the ldbf API

Variable Index

 o ldbfErrno
Error code returned by last operation

Constructor Index

 o ldbfJava()
Constructor, creates LDBF Java client with default user name
 o ldbfJava(String, String)
Constructor, creates LDBF Java client with specified user name and password

Method Index

 o AliasList()
List - gets list of available tables, aliases are separated by comma
 o Append(String)
Appends records to the table
 o Blank(String)
Blanks current record of specified table
 o Bottom(String)
Goes to bottom of table,if tag is set by SetTag it will be used
 o Call(String, String)
Calls stored procedure
 o Connect(String)
Connect - establishes connection to named host
 o Connect(String, int)
Connect with specified host using a different port.
 o CurrentTag(String)
Returns current tag of the table
 o Delete(String)
Marks current record as deleted
 o Deleted(String)
Returns true if current record is deleted
 o DoubleValue(String, String)
Returns value of field
 o FetchResult()
Returns next result returned by stored procedure if no more result returns null
 o FieldInfo(String, int)
Returns String represention of i'nth field Field's info are in format: field_name field_length field_type field_decs
 o Fields(String)
Returns number of fields in the table
 o Go(String, int)
 o Locate(String, String, String)
Locates matching record in table from current record.
 o LocateFirst(String, String, String, String)
Locates first matching record in table.
 o Lock(String)
Locks current record,return true if successful
 o LongValue(String, String)
Returns value of field
 o MemoValue(String, String)
Returns value of memo field
 o Reccount(String)
Returns number of records in the table
 o Recno(String)
Returns number of current record
 o RecordBuffer(String)
Returns record buffer of the table
 o Replace(String, String, String)
Replaces field of table with specified value
 o ReplaceDouble(String, String, Double)
Replaces field of table with specified value
 o ReplaceLong(String, String, Integer)
Replaces field of table with specified value
 o ReplaceMemo(String, String, byte[], int)
Sets value of memo field
 o Seek(String, String)
Seeks in table for value,tag must be set by SetTag
 o SetTag(String, String)
Sets default tag that'll be used by Seek,Skip,Top,and Bottom functions
 o Shutdown()
Close - close the connection to the server
 o Skip(String, int)
Skips specified number of records,if tag is set by SetTag it will be used
 o TagInfo(String)
Returns tag info about table
 o Top(String)
Goes to top of table,if tag is set by SetTag it will be used
 o Unlock(String)
Unlocks current record
 o Update(String)
Updates current record
 o Value(String, String)
Returns value of field
 o bufferLength()
Returns length of returned by server buffer
 o isOpened(String)
Returns true if specified table is opened

Variables

 o ldbfErrno
  public int ldbfErrno
Error code returned by last operation

Constructors

 o ldbfJava
  public ldbfJava()
Constructor, creates LDBF Java client with default user name
 o ldbfJava
  public ldbfJava(String username,
                  String passwd)
Constructor, creates LDBF Java client with specified user name and password

Methods

 o Connect
  public int Connect(String ldbfServer) throws IOException
Connect - establishes connection to named host
 o Connect
  public int Connect(String ldbfServer,
                     int otherPort) throws IOException
Connect with specified host using a different port.
 o bufferLength
  public int bufferLength()
Returns length of returned by server buffer
 o Shutdown
  public void Shutdown() throws IOException
Close - close the connection to the server
 o AliasList
  public String AliasList() throws IOException
List - gets list of available tables, aliases are separated by comma
 o Reccount
  public int Reccount(String alias) throws IOException
Returns number of records in the table
 o CurrentTag
  public String CurrentTag(String alias)
Returns current tag of the table
 o TagInfo
  public String TagInfo(String alias) throws IOException
Returns tag info about table
 o FieldInfo
  public String FieldInfo(String alias,
                          int i)
Returns String represention of i'nth field Field's info are in format: field_name field_length field_type field_decs
 o Fields
  public int Fields(String alias)
Returns number of fields in the table
 o RecordBuffer
  public String RecordBuffer(String alias)
Returns record buffer of the table
 o Recno
  public int Recno(String alias)
Returns number of current record
 o Blank
  public void Blank(String alias) throws IOException
Blanks current record of specified table
 o SetTag
  public void SetTag(String alias,
                     String tagname) throws IOException
Sets default tag that'll be used by Seek,Skip,Top,and Bottom functions
 o Go
  public void Go(String alias,
                 int recno) throws IOException
 o Top
  public void Top(String alias) throws IOException
Goes to top of table,if tag is set by SetTag it will be used
 o Bottom
  public void Bottom(String alias) throws IOException
Goes to bottom of table,if tag is set by SetTag it will be used
 o Seek
  public boolean Seek(String alias,
                      String value) throws IOException
Seeks in table for value,tag must be set by SetTag
 o Skip
  public void Skip(String alias,
                   int recno) throws IOException
Skips specified number of records,if tag is set by SetTag it will be used
 o Append
  public void Append(String alias) throws IOException
Appends records to the table
 o Update
  public void Update(String alias) throws IOException
Updates current record
 o Unlock
  public void Unlock(String alias) throws IOException
Unlocks current record
 o Lock
  public boolean Lock(String alias) throws IOException
Locks current record,return true if successful
 o Replace
  public void Replace(String alias,
                      String field,
                      String value)
Replaces field of table with specified value
 o ReplaceLong
  public void ReplaceLong(String alias,
                          String field,
                          Integer value)
Replaces field of table with specified value
 o ReplaceDouble
  public void ReplaceDouble(String alias,
                            String field,
                            Double value)
Replaces field of table with specified value
 o Value
  public String Value(String alias,
                      String field)
Returns value of field
 o LongValue
  public int LongValue(String alias,
                       String field)
Returns value of field
 o DoubleValue
  public double DoubleValue(String alias,
                            String field)
Returns value of field
 o MemoValue
  public byte[] MemoValue(String alias,
                          String field) throws IOException
Returns value of memo field
 o ReplaceMemo
  public void ReplaceMemo(String alias,
                          String field,
                          byte value[],
                          int len) throws IOException
Sets value of memo field
 o Delete
  public void Delete(String alias) throws IOException
Marks current record as deleted
 o Deleted
  public boolean Deleted(String alias)
Returns true if current record is deleted
 o LocateFirst
  public boolean LocateFirst(String alias,
                             String start,
                             String end,
                             String cond) throws IOException
Locates first matching record in table. if current tag is set it'll be used. start is begining value of current tag end is xBase expression, scan will be processed until this expression false cond is xBase expression, record that matches this condition will be returned
 o Locate
  public boolean Locate(String alias,
                        String end,
                        String cond) throws IOException
Locates matching record in table from current record. if current tag is set it'll be used. start is begining value of current tag end is xBase expression, scan will be processed until this expression false cond is xBase expression, record that matches this condition will be returned
 o Call
  public int Call(String procedure,
                  String param) throws IOException
Calls stored procedure
 o isOpened
  public boolean isOpened(String alias)
Returns true if specified table is opened
 o FetchResult
  public ldbfResult FetchResult()
Returns next result returned by stored procedure if no more result returns null

All Packages  Class Hierarchy  This Package  Previous  Next  Index